/* Custom CSS for code examples, diagrams, and other content */
.example-block {
    margin: 20px 0;
    padding: 20px;
    background: rgba(19, 185, 253, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.example-header {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: var(--code-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.feature-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-size: 1.3em;
}

.feature-card h3 svg {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.feature-card p {
    margin-bottom: 0;
}

.code-preview {
    display: flex;
    flex-direction: column;
}

.code-preview .preview {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
}

.code-preview pre {
    margin-top: 0;
}

/* Feature badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
}

.badge-blue {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.badge-green {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.badge-purple {
    background-color: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.badge-orange {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.badge-red {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* Image grids and gallery */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* Feature comparison tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: fixed;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    width: 30%;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    text-align: left;
    padding: 12px;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:nth-child(even) {
    background: var(--code-background);
}

/* SVG icons for features */
.feature-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    stroke-width: 1.5;
}

/* Additional styles for feature icon paths to ensure consistent appearance */
.feature-icon path, .feature-icon circle, .feature-icon rect {
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hero section for landing page */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #03a9f4);
    color: white;
    padding: 60px 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: white;
    border-bottom: none;
}

.hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.hero .buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero .button {
    background: white;
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.hero .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero .button-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

/* Cards for feature display */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.card-image {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: #f2f2f2;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-top: 0;
}

.card-tags {
    margin-top: 15px;
}

/* Steps explanation */
.steps-container {
    counter-reset: step-counter;
    margin: 30px 0;
}

.step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.step:before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step h3 {
    margin-top: 0;
}

/* Call to action */
.cta {
    background: var(--code-background);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}

.cta h2 {
    margin-top: 0;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2.2em;
    }
    
    .hero .buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .comparison-table {
        font-size: 0.9em;
    }
    
    .feature-grid,
    .card-container {
        grid-template-columns: 1fr;
    }
}
